<template>
  <div id="action">
    <div class="btn-left" @click="huos()"></div>
    <van-nav-bar class="news" title="活动消息" />
  </div>
</template>

<script>
export default {
    methods:{
        huos(){
            this.$router.push("/newscenter")
        }
    }
}
</script>

<style lang="scss" scoped>
    #action{
    height: 2.625rem;
    display: flex;
    /* justify-content: space-around; */
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
  }
  .btn-left{
    width: 1.5625rem;
    height: 1.5625rem;
    background: url() no-repeat;
    background-size: 1.5625rem;
    margin-left: .625rem;
  }
  .news{
    width: 9.375rem;
    font-size: 1.25rem;
    margin-left: 4.6875rem;
  }
</style>